{config_load file="lang/$language/lang_$language.conf" section="login"}
{config_load file="lang/$language/lang_$language.conf" section="create_account"}
{if $info_message}
	<div class="headerError">
		{$info_message}
	</div>
{/if}
<h1>{#heading_login#}</h1>

{if $account_option=='both' or $account_option=='guest'}
	<fieldset class="account">
		<legend><h2>{#title_guest#}</h2></legend>
		{#text_guest#}<br /><br />
		{$BUTTON_GUEST}
	</fieldset><br />
{/if}

{if $account_option=='account' or $account_option=='both'}
    {$FORM_ACTION}
		<fieldset class="account">
			<legend><h2>{#title_returning#}</h2></legend>
			{if $VVIMG !=''}
				<br />{#text_returning_hinweis#}<br /><br />
				<dl>
					<dt class="w150">&nbsp;</dt>
					<dd>{$VVIMG}</dd>
				</dl>
				<dl>
					<dt class="w150">{#text_returning_eingabe#}</dt>
					<dd>
						{$INPUT_CAPTCHA}
					</dd>
				</dl>
			{/if}
			<dl>
				<dt class="w150">{#text_email#}</dt>
				<dd>{$INPUT_LOGIN_MAIL}</dd>
			</dl>
			<dl>
				<dt class="w150">{#text_password#}</dt>
				<dd>{$INPUT_LOGIN_PASSWORD}</dd>
			</dl><br /><br />
			<dl>
				<dt class="w150"><a href="{$LINK_LOST_PASSWORD}">{#text_lost_password#}</a></dt>
				<dd>{$BUTTON_LOGIN}</dd>
			</dl>
		</fieldset>
	{$FORM_END}<br />
	
	{if $FORM_ACTION_CREATE}
		<div class="bts">&nbsp;</div>
		<h2>{#title_new#}</h2>
		{#text_new#}<br />	
		{$FORM_ACTION_CREATE}
			<div class="ar inputRequirement">{#text_must#}</div>
			<fieldset class="account">
				<legend><strong>{#title_personal#}</strong></legend>
				{if $INPUT_MALE}
					<dl>
						<dt class="w150">{#text_gender#}</dt>
						<dd>{#text_male#} {$INPUT_MALE}<br />{#text_female#} {$INPUT_FEMALE}</dd>
					</dl>
				{/if}
				{if $INPUT_TITLE}
					<dl>
						<dt class="w150">{#text_title#}</dt>
						<dd>{$INPUT_TITLE}</dd>
					</dl>
				{/if}
				{if $INPUT_FIRSTNAME}
					<dl>
						<dt class="w150">{#text_firstname#}</dt>
						<dd>{$INPUT_FIRSTNAME}</dd>
					</dl>
				{/if}
				{if $INPUT_LASTNAME}
					<dl>
						<dt class="w150">{#text_lastname#}</dt>
						<dd>{$INPUT_LASTNAME}</dd>
					</dl>
				{/if}
				{if $INPUT_DOB}
					<dl>
						<dt class="w150">{#text_birthdate#}</dt>
						<dd>{$INPUT_DOB}</dd>
					</dl>
				{/if}
				{if $INPUT_EMAIL}
					<dl>
						<dt class="w150">{#text_email#}</dt>
						<dd>{$INPUT_EMAIL}</dd>
					</dl>
				{/if}
				{if $INPUT_EMAIL_CONFIRMATION}
					<dl>
						<dt class="w150">{#text_email_confirmation#}</dt>
						<dd>{$INPUT_EMAIL_CONFIRMATION}</dd>
					</dl>
				{/if}
			</fieldset>

			{if $INPUT_COMPANY}
				<fieldset class="account">
					<legend><strong>{#title_company#}</strong></legend>
					<dl>
						<dt class="w150">{#text_company#}</dt>
						<dd>{$INPUT_COMPANY}</dd>
					</dl>
					{if $INPUT_VAT}
						<dl>
							<dt class="w150">{#text_ustid#}</dt>
							<dd>{$INPUT_VAT}</dd>
						</dl>
					{/if}
				</fieldset>
			{/if}

			<fieldset class="account">
				<legend><strong>{#title_address#}</strong></legend>
				{if $INPUT_STREET}
					<dl>
						<dt class="w150">{#text_street#}</dt>
						<dd>{$INPUT_STREET}</dd>
					</dl>
				{/if}
				{if $INPUT_STREET_NUM}
					<dl>
						<dt class="w150">{#text_street_num#}</dt>
						<dd>{$INPUT_STREET_NUM}</dd>
					</dl>
				{/if}
				{if $INPUT_SUBURB}
					<dl>
						<dt class="w150">{#text_suburb#}</dt>
						<dd>{$INPUT_SUBURB}</dd>
					</dl>
				{/if}
				{if $INPUT_CITY}
					<dl>
						<dt class="w150">{#text_city#}</dt>
						<dd>{$INPUT_CITY}</dd>
					</dl>
				{/if}
				{if $INPUT_CODE}
					<dl>
						<dt class="w150">{#text_code#}</dt>
						<dd>{$INPUT_CODE}</dd>
					</dl>
				{/if}
				{if $INPUT_COUNTRY}
					<dl>
						<dt class="w150">{#text_country#}</dt>
						<dd>{$INPUT_COUNTRY}</dd>
					</dl>
				{/if}
				{if $INPUT_STATE}
					<dl>
						<dt class="w150">{#text_state#}</dt>
						<dd id="state">{$INPUT_STATE}</dd>
					</dl>
					{$SELECT_COUNTRY_JS}
				{/if}
			</fieldset>
			{if $INPUT_TEL || $INPUT_FAX}
				<fieldset class="account">
					<legend><strong>{#title_contact#}</strong></legend>
					{if $INPUT_TEL}
						<dl>
							<dt class="w150">{#text_tel#}</dt>
							<dd>{$INPUT_TEL}</dd>
						</dl>
					{/if}
					{if $INPUT_FAX}
						<dl>
							<dt class="w150">{#text_fax#}</dt>
							<dd>{$INPUT_FAX}</dd>
						</dl>
					{/if}
				</fieldset>
			{/if}
			{if $INPUT_PASSWORD || $INPUT_CONFIRMATION}
				<fieldset class="account">
					<legend><strong >{#title_password#}</strong></legend>
					{if $INPUT_PASSWORD}
						<dl>
							<dt class="w150">{#text_password#}</dt>
							<dd>{$INPUT_PASSWORD}</dd>
						</dl>
					{/if}
					{if $INPUT_CONFIRMATION}
						<dl>
							<dt class="w150">{#text_confirmation#}</dt>
							<dd>{$INPUT_CONFIRMATION}</dd>
						</dl>
					{/if}
				</fieldset>
			{/if}
			{if $INPUT_NEWSLETTER}
				<fieldset class="account">
					<legend><strong >{#title_newsletter#}</strong></legend>
					{$INPUT_NEWSLETTER} {#receive_newsletter#}
				</fieldset>
			{/if}
			<fieldset class="account">
				<legend><strong>{$TITLE_DSG}</strong></legend>
				<div class="textarea">{$DSG}</div>
				{$DATENSG_CHECKBOX} {#text_accept_datensg#} {$BUTTON_PRINT}<br />
				<div class="ar" id="create_account_button">{$BUTTON_SUBMIT}</div>
			</fieldset><br />
		{$FORM_END}
	{/if}
{/if}